package Month07.day03;

public class array2 {
    public static void main(String[] args) {
        int[] arr = {1, 2, 5, 1};
        int count = 0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] - arr[0] == 0) {
                count++;
            }
        }
        System.out.println("要找的数一共出现了" + count + "次");
    }
}

